/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wsv3;

import com.ws1.exo1.HelloBean;
import com.ws1.exo1.HelloRemote;
import com.ws1.exo2.ShoppingCartBean;
import com.ws1.exo2.domain.Item;
import java.util.Map;

/**
 *
 * @author johann
 */
public class Test2 {

    private static ShoppingCartBean scb;
    
    public static void main(String[] args) {
        scb = new ShoppingCartBean();
        Item it1 = new Item("booba", "boisson");
        scb.addItem(it1, 2);
        
        Item it2 = new Item("rohff", "boisson");
        scb.addItem(it2, 1);
        
        for(Map.Entry<Item,Integer> e : scb.getOrderLines().entrySet()) {
            System.out.println(e.getKey().getName()+"-"+e.getValue());
        }
        
        
    }
}
